package com.lj.demo.eduservice.client;

import com.lj.demo.eduservice.client.impl.OrderFile;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: liujiang
 * @Date: 2021/01/10/18:37
 * @Description:
 */
@Component
@FeignClient(value = "service-order",fallback = OrderFile.class)
public interface OrderClient {

    //查询订单信息
    @GetMapping("/orderService/order/isBuyCourse/{memberId}/{id}")
    public Boolean isBuyCourse(@PathVariable("memberId") String memberId,
                               @PathVariable("id") String id);
}
